#ifndef GRAPHICS_EXCEPTIONS_GL_ERROR_H
#define GRAPHICS_EXCEPTIONS_GL_ERROR_H

//STL
#include <vector>
#include <string>
#include <stdexcept>

//Graphics
#include "../Renderable.h"

using namespace Graphics;

class GLError: public std::runtime_error
{
	public:
			GLError(const std::string& message="");
			std::string message();
			std::string trace();

			static int checkErrors();

	private:
			Renderable* _renderable;
			static std::vector<std::string> _errors;
};

#endif
